<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader">
	<form rel="pagerForm" id="searchForm" onsubmit="return navTabSearch(this);" action="zdzx/zdzxEmpPager.do?ACTION=${ACTION}&TODO=${TODO}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						姓名:
						<input type="text" size="15" name="map.empName_L" value="${pager.scMap.empName_L}">
						手机:
						<input type="text" size="15" name="map.mobile_L" value="${pager.scMap.mobile_L}">
						所属单位:
						<input type="text" size="15" name="map.orgName_L" value="${pager.scMap.orgName_L}">
						职务:
						<input type="text" size="15" name="map.zw_L" value="${pager.scMap.zw_L}">
		      		</td>
				</tr>
			</table>
		 		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar">
	<ul class="toolBar">
		<li><a class="icon" href='javascript:exportExcel($("#searchForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))' title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="105" orderField="empName" <c:if test='${pager.orderField=="empName"}'>class="${param.orderDirection}"</c:if> >姓名</th>
				<th width="50"  orderField="sex" <c:if test='${pager.orderField=="sex"}'>class="${param.orderDirection}"</c:if> >性别</th>
				<th width="75"  orderField="isLeader" <c:if test='${pager.orderField=="isLeader"}'>class="${param.orderDirection}"</c:if> >负责人</th>
				<th width="105"  orderField="mobile" <c:if test='${pager.orderField=="mobile"}'>class="${param.orderDirection}"</c:if> >手机</th>
				<th width="205"  orderField="orgName" <c:if test='${pager.orderField=="orgName"}'>class="${param.orderDirection}"</c:if> >所属单位</th>
				<th width="105"  orderField="zw" <c:if test='${pager.orderField=="zw"}'>class="${param.orderDirection}"</c:if> >职务</th>
				<th>备注</th>
				<th width="40"  orderField="activeStatusInt" <c:if test='${pager.orderField=="activeStatusInt"}'>class="${param.orderDirection}"</c:if> >状态</th>
				<th width="215">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td><a target="navTab" href="zdzx/toZdzxEmpEditor/${item.id}.do?funId=${funId}" rel="cyzjEmpEditor">${item.empName}</a></td>
					<td>${item.mobile}</td>
					<td>${item.isLeader=="1"?"是":"否"}</td>
					<td>${item.orgName}</td>
					<td>${item.zw}</td>
					<td>${item.remark}</td>
					<td>
						<c:if test="${TODO=='EDIT'}">
					    <a title="编辑用户" target="navTab" href="zdzx/toZdzxEmpEditor/${item.id}.do?ACTION=MODIFY&TODO=EDIT&funId=${funId}" rel="cyzjEditor">编辑</a>&nbsp;&nbsp;

						<c:if test="${item.activeStatusInt==1}">
							<a title="确认停用该账号吗?" href="common/updateStatus.do?userType=ZdzxEmp&id=${item.id}&status=0" target="ajaxTodo" rel="dsEmpEditor">停用</a>&nbsp;&nbsp;
						</c:if>
						<c:if test="${item.activeStatusInt!=1}">
							<a title="确认启用该账号吗?" href="common/updateStatus.do?userType=ZdzxEmp&id=${item.id}&status=1" target="ajaxTodo" rel="dsEmpEditor">启用</a>&nbsp;&nbsp;
						</c:if>
						<a title="确认重置密码吗?" href="sys/user/resetPwd.do?userType=ZdzxEmp&id=${item.id}" target="ajaxTodo" rel="dsEmpEditor">重置密码</a>&nbsp;&nbsp;
						</c:if>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />